package com.cooper.service.message;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cooper.dao.account.MessageDAO;
import com.cooper.entity.MessageEntity;

@Service
public class MessageService {
	protected Logger logger = LoggerFactory.getLogger(this.getClass());
	
	@Autowired
	private MessageDAO messageDao;
	
	public Long createMessage(MessageEntity message){
		try {
			return messageDao.createMessage(message);
		} catch (Exception e) {
			logger.error("MessageService-createMessage-error", e);
		}
		return null;
	}
}
